
package com.neuedu.factorybean;

import com.neuedu.jdk.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestProxyFactory {
    public static void main(String[] args){
        ApplicationContext ac=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserDao userDao=(UserDao)ac.getBean("userDaoProxy");
        userDao.addUser();
        userDao.deleteUser();
    }
}
